const { defineConfig } = require('@vue/cli-service')
const path = require('path')

function resolve (dir) {
  return path.join(__dirname, dir)
}

module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: "./",
  lintOnSave: true,
  chainWebpack: (config) => {
    config.resolve.alias
      .set('@$', resolve('src'))
      .set('assets', resolve('src/assets'))
      .set('untils', resolve('src/untils'))
      .set('components', resolve('src/components'))
      .set('network', resolve('src/network'))
      .set('view', resolve('src/view'))
  }
  // rules: [
  //   {
  //     test: /\.scss$/,
  //     loaders: ['style','css','sass']
  //   }
  // ]
})
